<template>
	<u-cell-group>
		<view v-for="c in cars">
			<u-cell :title="'车辆ID：'+c.carId"></u-cell>
			<u-cell :title="'车牌号：'+c.carNum"></u-cell>
			<u-cell :title="'车辆品牌：'+c.carBrand"></u-cell>
			<u-cell :title="'车辆型号：'+c.carType"></u-cell>
			<u-cell :title="'车辆状态：'+c.carStatus"></u-cell>
			<u-divider></u-divider>
		</view>
	</u-cell-group>
</template>

<script>
	export default {
		data() {
			return {
				cars: []
			}
		},
		methods: {

		},
		onLoad(){
			let c = this;
			uni.request({
				url: "/car/all",
				success(res) {
					if (res.data.code == 200) {
						c.cars = res.data.data
					}
				}
			})
		}
	}
</script>

<style>
</style>